package com.lizhangjun.nim.entity;

/**
 * 系统响应状态码
 * @author 李章俊
 */
public class ResultCode
{
    /**
     * 成功
     */
    public static final int OK = 2000;

    /**
     * 失败
     */
    public static final int FAIL = 2001;

    /**
     * 资源不存在
     */
    public static final int NOT_EXIST = 2002;

    /**
     * 拒绝访问
     */
    public static final int DENY_ACCESS = 2003;

    /**
     * 无访问权限
     */
    public static final int NO_AUTH = 2004;

    /**
     * 系统错误
     */
    public static final int SYSTEM_ERROR = 2005;

    /**
     * 系统繁忙
     */
    public static final int SYSTEM_BUSY = 2006;

    /**
     * 认证失败
     */
    public static final int AUTHENTICATION_FAIL = 2007;

    /**
     * 登录过期
     */
    public static final int AUTHENTICATION_EXPIRE = 2008;

    /**
     * 授权失败
     */
    public static final int AUTHORIZATION_FAIL = 2009;

    /**
     * Sentienl限流规则阻拦
     */
    public static final int SENTINEL_FLOW_LIMITING = 2010;

    /**
     * Sentienl降级拦截
     */
    public static final int SENTINEL_DEGRADE_INTERCEPT = 2011;

    /**
     * Sentienl热点参数规则拦截
     */
    public static final int SENTINEL_HOT_PARAMS_INTERCEPT = 2012;

    /**
     * Sentienl系统规则拦截
     */
    public static final int SENTINEL_SYSTEM_BLOCK_ERROR = 2013;

    /**
     * Sentienl授权规则拦截
     */
    public static final int SENTINEL_AUTHORITY_EXCEPTION = 2014;

    /**
     * 其他sentinel规则拦截
     */
    public static final int OTHER_SENTINEL_INTERCEPT = 2015;

    /**
     * 支付订单错误
     */
    public static final int ORDER_FAIL = 2016;

    /**
     * 多客户端登录拦截
     */
    public static final int MULTI_LOGIN = 2017;
}